package io.adrainty.bolee.insurance.models.entity;

import io.adrainty.bolee.framework.commons.basic.BaseEntity;
import io.adrainty.bolee.framework.commons.basic.EnableEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.io.Serial;

/**
 * <p>ConditionEntity</p>
 *
 * @author AdRainty
 * @version V1.0.0
 * @description ConditionEntity
 * @since 2025/8/11 11:23:45
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "筛选项")
@EqualsAndHashCode(callSuper = true)
public class ConditionEntity extends BaseEntity {

    @Serial
    private static final long serialVersionUID = -6712538364874781247L;

    @Schema(description = "条件项key")
    private String conditionKey;

    @Schema(description = "条件项名称")
    private String conditionKeyName;

    @Schema(description = "条件项值")
    private String conditionVal;

    @Schema(description = "排序")
    private Integer sortNo;

    @Schema(description = "批量操作：conditionKeys")
    private String[] conditionKeys;

    @Schema(description = "批量操作：主键ID")
    private String[] checkedIds;

    @Schema(description = "数据状态：0正常 1禁用")
    private EnableEnum dataState;

}
